package com.gg.common.mapper;

import com.gg.common.pojo.DModuleDetails;
import com.gg.common.pojo.MDesignProcedureDetails;

import java.util.List;


public interface MDesignProcedureDetailsMapper {

    /**
     * 根据id查询
     * @param id
     * @return
     */
    List<MDesignProcedureDetails> queryMDesignProcedureDetailsById(List<MDesignProcedureDetails> id);
    /**
     * 插入物料成本小计
     * @param mDesignProcedureDetails
     * @return
     */
    int updateMDesignProcedureDetailsModuleSubtotal(MDesignProcedureDetails mDesignProcedureDetails);
    /**
     * 修改当前工序物料标志 已设计
     * @param id
     * @return
     */
    int updateMDesignProcedureDetailsTagById(Integer id);
    /**
     * 批量添加工序
     */
    int BatchUpdateDesignProcedureProcess(List<MDesignProcedureDetails> mDesignProcedureDetailsList);
    /**
     * 添加工序
     * @param
     * @return
     */
    int AddMDesignProcedureProcess(MDesignProcedureDetails mDesignProcedureDetails);

    /**
     * 根据父级编号查询
     *
     * @param id
     * @return
     */
    List<MDesignProcedureDetails> queryMDesignProcedureDetailsByParentId(int id);

    int deleteByPrimaryKey(Integer id);

    int insert(List<MDesignProcedureDetails> record);

    int insertSelective(MDesignProcedureDetails record);

    MDesignProcedureDetails selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MDesignProcedureDetails record);

    int updateByPrimaryKey(MDesignProcedureDetails record);

    List<MDesignProcedureDetails> checkProcessMaterialIsItDoneMapper(String v);


}